<?php
// $Id$

/**
 * @file
 * Default theme implementation to display a listing summary.
 *
 * Available variables:
 * - $listing_title
 * - $listing_comment
 * - $listing_url
 * - $listing_raids
 *
 * @see template_preprocess_guild_standings_list()
 *
 * @ingroup themeable
 */
?>
<div>
  <div class="standings-summary-heading">
    <h3><a href="<?php print $listing_url; ?>"><?php print $listing_title; ?></a></h3>
    <span class="standings-comment"><?php print $listing_comment; ?></span>
  </div>
  <div class="standings-summary-raids">
    <?php print t('Recent raids:'); ?>
    <ul>
    <?php foreach ($listing_raids as $raid): ?>
      <li>
        <strong><?php print $raid['title']; ?></strong><span class="standings-comment"><?php print ' (' . $raid['comment'] . ')'; ?></span>
        <br /><?php print $raid['date']; ?>
        <br /><em><?php print t('@members members, @events events, @items items', array('@members' => $raid['members'], '@events' => $raid['events'], '@items' => $raid['items'])); ?></em>
     </li>
    <?php endforeach; ?>
    </ul>
  </div>
</div>
